package com.flyoil.petromp.mvp_m.SearchCertainModel;

import com.flyoil.petromp.entity.entity_course_list.CourseCertainEntity;
import com.flyoil.petromp.entity.entity_order.MapListEntity;
import com.flyoil.petromp.mvp_p.Listener.OnPresenterListener;
import com.flyoil.petromp.utils.OrderUtl.OrderListUtil;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by songzhiyin on 2017/11/1.
 * 物资质保期验收单列表单据搜索输入数据界面的数据处理类
 */

public class SearchGoodsDateExamineModel implements SearchBaseModel {


    @Override
    public void loadNetworkData(Map<String, Object> map, final OnPresenterListener listener) {
        List<CourseCertainEntity> courseCertainEntities = new ArrayList<>();
        courseCertainEntities.add(new CourseCertainEntity("物资质保期验收单", "PL542254", "2017-08-19", OrderListUtil.GOODS_DATE_EXAMINE));
        listener.onsucced(courseCertainEntities);


    }


    @Override
    public void loadUiData(OnPresenterListener listener) {
        List<MapListEntity> data_hint = new ArrayList<>();
        data_hint.add(new MapListEntity("订单编号", "请输入订单编号"));
        listener.onsucced(data_hint);
    }
}
